.class public Lcom/esfile/screen/recorder/utils/r;
.super Ljava/lang/Object;
.source "StatusBarHelper.java"


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public static a(Landroid/app/Activity;)V
    .locals 0

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    invoke-static {p0}, Lcom/esfile/screen/recorder/utils/r;->a(Landroid/view/Window;)V

    return-void
.end method

.method public static a(Landroid/view/Window;)V
    .locals 1

    const/high16 v0, 0x40000000    # 2.0f

    .line 2
    invoke-static {p0, v0}, Lcom/esfile/screen/recorder/utils/r;->a(Landroid/view/Window;I)V

    return-void
.end method

.method public static a(Landroid/view/Window;I)V
    .locals 4
    .param p1    # I
        .annotation build Landroidx/annotation/ColorInt;
        .end annotation
    .end param
    .annotation build Landroid/annotation/TargetApi;
        value = 0x13
    .end annotation

    .line 3
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_1

    .line 4
    invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x500

    invoke-virtual {v0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V

    .line 5
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x17

    const/high16 v2, -0x80000000

    const/high16 v3, 0x4000000

    if-lt v0, v1, :cond_0

    invoke-static {}, Lcom/esfile/screen/recorder/utils/r;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 6
    invoke-virtual {p0, v3}, Landroid/view/Window;->clearFlags(I)V

    .line 7
    invoke-virtual {p0, v2}, Landroid/view/Window;->addFlags(I)V

    const/4 p1, 0x0

    .line 8
    invoke-virtual {p0, p1}, Landroid/view/Window;->setStatusBarColor(I)V

    goto :goto_0

    .line 9
    :cond_0
    invoke-virtual {p0, v3}, Landroid/view/Window;->clearFlags(I)V

    .line 10
    invoke-virtual {p0, v2}, Landroid/view/Window;->addFlags(I)V

    .line 11
    invoke-virtual {p0, p1}, Landroid/view/Window;->setStatusBarColor(I)V

    :cond_1
    :goto_0
    return-void
.end method

.method public static a()Z
    .locals 1

    .line 12
    invoke-static {}, Lcom/esfile/screen/recorder/utils/g;->l()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-static {}, Lcom/esfile/screen/recorder/utils/g;->k()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method
